Telegram Group & Telegram Channel
Какой из вариантов выведет 4 9 ?
from itertools import islice
g = (i**2 for i in range(1, 4))
print(*g[1:3]) # 1
print(*islice(g, 1, 3)) # 2
print(*slice(g, 1, 3)) # 3
print(*g.slice(1, 3)) # 4



tg-me.com/Machinelearningtest/169
Create:
Last Update:

Какой из вариантов выведет 4 9 ?

from itertools import islice
g = (i**2 for i in range(1, 4))
print(*g[1:3]) # 1
print(*islice(g, 1, 3)) # 2
print(*slice(g, 1, 3)) # 3
print(*g.slice(1, 3)) # 4

BY Machinelearning tests


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/Machinelearningtest/169

View MORE
Open in Telegram


Machinelearning tests Telegram | DID YOU KNOW?

Date: |

NEWS: Telegram supports Facetime video calls NOW!

Secure video calling is in high demand. As an alternative to Zoom, many people are using end-to-end encrypted apps such as WhatsApp, FaceTime or Signal to speak to friends and family face-to-face since coronavirus lockdowns started to take place across the world. There’s another option—secure communications app Telegram just added video calling to its feature set, available on both iOS and Android. The new feature is also super secure—like Signal and WhatsApp and unlike Zoom (yet), video calls will be end-to-end encrypted.

Machinelearning tests from id


Telegram Machinelearning tests
FROM USA